﻿using Guoc.BigMall.Domain.ValueObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.WebService.Dto
{
   public class SaleOrderListVo
    {
        /// <summary>
        ///  销售单Id
        /// </summary>
        public int Id { get; set; }

        public string Code { get; set; }

        public DateTime CreatedOn { get; set; }

        public SaleOrderStatus Status { get; set; }


        public int SaleOrderItemId { get; set; }

        // 详情
        public int ProductId { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 显示名称 （前端显示的，带销售语的长名称）
        /// </summary>
        public string ProductName { get; set; }

        public string ImageUrl { get; set; }

        /// <summary>
        /// 实际销售价
        /// </summary>
        public decimal SalePrice { get; set; }


        public decimal RealPrice { get; set; }

        public int Quantity { get; set; }

        public decimal getAmount()
        {
            return this.RealPrice * Quantity;
        }
    }
}
